{extend name='layout/base'}
{block name='title'}roseCake蛋糕官网_24小时蛋糕网上订购_5小时新鲜送达！{/block}
{block name='head'}
<link rel="stylesheet" type="text/css" href="__PUBLIC__/static/css/productDetails.css">
{/block}
{block name='content'}
<!--content start-->
<div class="container-fluid">
    <!--big image start-->
    <div class="row">
        <div class="col-md-2"></div>
        <div class="col-md-9 topImage">
            <div class="col-md-10">
                <ul class="topLeftImage">
                    <li><img src="__PUBLIC__/uploads/home/t26.jpg" class="bigImg"></li>
                </ul>
            </div>
            <div class="col-md-2">
                <ul class="topRightImage">
                    <li><a href="<?php echo url('index/Prompt/index');?>"><img src="__PUBLIC__/uploads/home/t25.jpg"></a></li>
                    {foreach $item_imgs_front as $img}
                    <li><img src="<?php echo up_url($img['path']);?>" class="topRightLittleImage"></li>
                    {/foreach}
                </ul>
            </div>      
        </div>
        <script type="text/javascript">
            $(document).ready(function(){
                var bigsrc = '';
                //鼠标移动到任何一张小图显示大图
                $('.topRightImage .topRightLittleImage').mouseover(function(){
                    bigsrc = $(this).attr('src');
                    //替换到大图的src属性
                    $('.topLeftImage .bigImg').attr('src',bigsrc);
                });
                //当文档执行完之后自动将鼠标移动到.topRightLittleImage节点上
                $('.topRightImage .topRightLittleImage').mouseover();
            });
        </script>
        <div class="col-md-1"></div>
    </div>
    <!--big image end-->
    <!--middle words start-->
    <div class="row">
        <div class="col-md-2"></div>
        <div class="col-md-9 middleWords">
            <div class="middleWordsLeft">
                <h4>{$item_goods.title}</h4>
                <p class="redWord">{$item_goods.description}</p>
                <a href="#">
                    <span class="round">
                     <?php 
                        echo config('set.taste_status')[$item_classification['taste']];
                     ?> 
                     ></span>
                </a>
                <a href="#">
                    <span class="round">
                     <?php 
                        echo config('set.features_status')[$item_classification['features']];
                     ?>                         
                    ></span>
                </a>
                <p>
                    <img src="__PUBLIC__/uploads/home/pcicon-20.png" class="pcicon20">
                    <span class="otherWord">红颜草莓，糖度>8%</span>
                </p>
                <p class="redWord">拟调整卡百利蛋糕自2011年起使用造型版本，在此之前，开启1、2磅规格升磅活动。*现有2、3磅已是升磅后价格、规格。</p>
                <p class="otherWord">/草莓配奶油，从王室，前往温布尔登的雨季/Now 21cake has encapsulated this gloriously English tradition in square cake form. At Wimbledon, which dates back to 1877, protocol and propriety rule. Players must wear white...</p>
                <p>
                    <span class="glyphicon glyphicon-asterisk" style="color: rgb(181,228,245);"></span>
                    <span class="otherWord">保鲜条件：0－4℃保藏10小时，5℃食用为佳</span>
                </p>
                <p>
                    <span class="glyphicon glyphicon-heart"></span>
                    <span class="otherWord">参考甜度：</span>
                    <span class="glyphicon glyphicon-heart"></span>
                    <span class="glyphicon glyphicon-heart"></span>
                    <span class="glyphicon glyphicon-heart"></span>
                    <span class="glyphicon glyphicon-heart-empty"></span>
                    <span class="glyphicon glyphicon-heart-empty"></span>
                </p>
            </div>    
            <div class="middleWordsRight">
                <div style="float: left;">
                    <img src="__PUBLIC__/uploads/home/2.00P-full-18.00.jpg" style="width: 300px;height: 170px;margin-bottom: 20px;" class="sizeImg">
                    <p>商品规格：
                        <span class="size" name="2.00P-full-18.00.jpg">2.0磅</span>
                        <span class="size" name="3.00P-full-24.00.jpg">3.0磅</span>
                        <span class="size" name="5.00P-full-27.00.jpg">5.0磅</span>
                    </p>
                    <p style="margin-top: 30px;">
                        <a href="<?php echo url('index/Prompt/index');?>"><span class="buynow">立即购买</span></a>
                        <a href="<?php echo url('index/Prompt/index');?>"><span class="shoppingcar">加入购物车</span></a>
                    </p>
                </div>
                <script type="text/javascript">
                    $(document).ready(function(){
                        $('.size').click(function(){
                            //获取name值
                            filename = $(this).attr('name');
                            //拼接替换图片的地址
                            replaceName = "__PUBLIC__/uploads/home/"+filename;
                            //替换sizeImg类编辑器的src属性
                            $('.sizeImg').attr('src',replaceName);
                        });
                    });
                </script>
                <div style="float: left; margin: 40px 0px 0px 40px;">
                    <p>
                        <span class="glyphicon glyphicon-resize-horizontal"></span>
                        <span>27x27cm</span>
                    </p>
                    <p>
                        <span class="glyphicon glyphicon-glass"></span>
                        <span>适合15-20人分享</span>
                    </p>
                    <p>
                        <span class="glyphicon glyphicon-cutlery"></span>
                        <span>含20套餐具</span>
                    </p>
                    <p>
                        <span class="glyphicon glyphicon-time"></span>
                        <span>最早明天 18:30配送</span>
                    </p>
                    <h3 style="color: rgb(184,151,114);">¥{$item_attr.price}/{$item_classification.size}磅</h3>
                </div>
            </div>
            <div class="emptyhr"></div>   
        </div>
        <div class="col-md-1"></div>
    </div>
    <!--middle words end-->    
    <!--bottom img start-->
    <div class="row">
        <div class="col-md-2"></div>
        <div class="col-md-9 bottomImg">
            <p>{$item_goods.content}</p>
            <!--商品详情主图-->
            <img src="<?php echo up_url($item_goods['image']);?>">
            <!--商品四张详情之后的详情图片-->
            {foreach $item_imgs_behind as $img}
                <img src="<?php echo up_url($img['path']);?>">              
            {/foreach}    
            <img src="__PUBLIC__/uploads/home/t35.jpg">
            <div class="text-center" style="color: #999;">以上图片仅供参考，请以收到实物为准。</div> 
            <p>温布尔登， 一个英国小镇，代表着尊贵和神圣的地方。 每年6月最后一周的周一， 至7月初定期举行网球赛事（每年的温网必定会碰上雨天）， 自1877年至今，已经形成了传统。 网球的历史，更要追溯到13世纪的法国王室， 每逢比赛现场，绅士随处可见。 今天欣赏网球的规矩、习惯，或许要从那时候去考证了。 **在比赛中，球员的比赛服装的颜色只能是白色。 **女选手在整个赛事中，其姓之前被冠以“小姐”或“夫人”。 **男性观众依然不能穿着短裤，女性则不能戴帽子。 **草莓配奶油是观看比赛期间的传统零食。
            </p>
            <hr>
            <div style="MARGIN-TOP: 10px; WIDTH: 100%">小提示: 
                <ol>
                    <li>蛋糕规格及免费配送餐具 ： 
                        <table style="WIDTH: 40%; MARGIN-LEFT: 19px"> 
                            <colgroup data-filtered="filtered"> 
                                <col style="WIDTH: 35%" data-filtered="filtered"> 
                                <col style="WIDTH: 35%" data-filtered="filtered"> 
                                <col style="WIDTH: 30%" data-filtered="filtered">
                            </colgroup> 
                            <tbody> 
                                <tr> 
                                    <td>1.0磅：约13×13(cm)</td> 
                                    <td>适合3-4人食用</td> 
                                    <td>免费配送5套餐具</td>
                                </tr> 
                                <tr> 
                                    <td>2.0磅：约17×17(cm)</td> 
                                    <td>适合7-8人食用</td> 
                                    <td>免费配送10套餐具</td>
                                </tr> 
                                <tr> 
                                    <td>3.0磅：约23×23(cm)</td> 
                                    <td>适合11-12人食用</td> 
                                    <td>免费配送15套餐具</td>
                                </tr> 
                                <tr> 
                                    <td>5.0磅：约30×30(cm)</td> 
                                    <td>适合15-20人食用</td> 
                                    <td>免费配送20套餐具</td>
                                </tr>
                            </tbody>
                        </table> 
                        <p style="MARGIN-LEFT: 19px">订购5磅及5磅以上规格的蛋糕，请与客服人员联系，订购电话：400 680 5555</p>
                    </li> 
                    <li>蛋糕在收到后2-3小时内食用为佳。</li> 
                    <li>如对上述食材有过敏经历者，请选择其它款蛋糕。</li> 
                </ol>
            </div>

        </div>
        <div class="col-md-1"></div>
    </div>    
    <!--bottom img end-->   
    <!--reference start-->
    <div class="row">
        <div class="col-md-2"></div>
        <div class="col-md-9 reference">
            <p class="referenceTitle">商品推荐</p>
            {foreach $rows as $row}
            <div class="referenceImg">
                <a href="<?php echo url('index/product.ProductDetails/index',['goods_id'=>$row['goods_id']]);?>">
                    <img src="<?php echo thumb_url($row['image']);?>" class='img-circle'>
                    <div class="shadow">
                        <?php
                            echo config('set.features_status')[$row['features']].'，';
                            echo config('set.taste_status')[$row['taste']];
                        ?>
                    </div>
                    <div class="text-center shadowWord">{$row.title}</div>
                    <div class="text-center shadowWord">￥{$row.price}/
                        <?php
                            echo config('set.size_status')[$row['size']];
                        ?>
                    </div>
                </a>
            </div>           
            {/foreach}         
        </div>
        <div class="col-md-1"></div>
    </div>
    <script type="text/javascript">
        $(document).ready(function(){
            $('.reference .referenceImg').hover(function(){
                $(this).find('.shadow').slideDown()
            },function(){
                $(this).find('.shadow').slideUp()
            });
        });
    </script>   
    <!--reference end-->
</div>
<!--content end-->    
{/block}